<?php

namespace App\Http\Controllers\Api;

use App\Http\Requests\NotifyCallUrlRequest;
use App\Http\Requests\NotifyMediaStreamRequest;
use App\Service\TeleService;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;

class NotifyCallController extends Controller
{
    public function notifyCallUrl(NotifyCallUrlRequest $request,TeleService $teleService){
        $teleService->notifyCallUrl($request);
        return response()->json(
            [
                'result'=>'0',
                'error'=>''
            ]
        );
    }
    //媒体通知接口
    public function  notifyMediaStream(NotifyMediaStreamRequest $request,TeleService $service){
        $service->notifyMediaStream($request);
        return response()->json(
            [
                'result'=>'0',
                'error'=>''
            ]);
    }
}
